package com.wbw.ssb.exception;


import com.wbw.ssb.common.api.ResultCode;

/**
 * @Author: guibo
 * @Description: API断言
 * @Date: Created in 21:05 2021/1/11
 * @Modified By:
 */
public class Asserts {
    public static void fail(String message) {
        throw new ApiException(message);
    }

    public static void fail(Throwable throwable) {
        throw new ApiException(throwable);
    }

    public static void fail(ResultCode resultCode) {
        throw new ApiException(resultCode);
    }
}
